package a.e.b.a;

import a.e.b.c.cb;
import a.e.b.c.o;
import a.i.ib;
import a.i.jb;
import a.j.tb;
import a.j.wb;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import java.util.Iterator;
import java.util.Map;

public class e
  extends a
{
  static Class d;
  static Class e;
  public static int f;
  
  public String a()
  {
    return "GenericEdge";
  }
  
  public String b()
  {
    return "http://www.yworks.com/xml/graphml";
  }
  
  public Class d()
  {
    if (!i.i) {}
    return d == null ? (e.d = a("a.j.wb")) : d;
  }
  
  public void b(tb paramtb, cb paramcb, o paramo)
  {
    super.b(paramtb, paramcb, paramo);
    wb localwb = (wb)paramtb;
    paramcb.c("configuration", localwb.ob());
  }
  
  public void a(tb paramtb, cb paramcb, o paramo)
    throws a.e.b.c.a
  {
    super.a(paramtb, paramcb, paramo);
    wb localwb = (wb)paramtb;
    a(localwb, paramcb, paramo);
    b(localwb, paramcb, paramo);
  }
  
  protected void a(wb paramwb, cb paramcb, o paramo)
    throws a.e.b.c.a
  {
    Object localObject = paramwb.bb();
    s.a(localObject, paramo, paramcb, e());
  }
  
  protected void b(wb paramwb, cb paramcb, o paramo)
    throws a.e.b.c.a
  {
    t.a(paramwb.ab(), paramcb, paramo);
  }
  
  protected jb e()
  {
    return ib.c();
  }
  
  public void a(tb paramtb, Node paramNode, a.e.b.b.t paramt)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    int j = i.h;
    wb localwb = (wb)paramtb;
    super.a(localwb, paramNode, paramt);
    NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
    Node localNode1 = localNamedNodeMap.getNamedItem("configuration");
    if (!bool) {
      if (localNode1 != null) {
        try
        {
          localwb.d(localNode1.getNodeValue());
        }
        catch (IllegalArgumentException localIllegalArgumentException)
        {
          if (!bool) {}
          a_ locala_ = (a_)paramt.a(e == null ? (e.e = a("a.e.b.a.e$a_")) : e);
          if ((bool) || (locala_ != null))
          {
            locala_.a(paramNode, localwb, paramt);
            if (j == 0) {}
          }
          else
          {
            throw new a.e.b.b.a("Unknown configuration " + localNode1.getNodeValue(), localIllegalArgumentException);
          }
        }
      }
    }
    NodeList localNodeList = paramNode.getChildNodes();
    int i = 0;
    do
    {
      if (i >= localNodeList.getLength()) {
        break;
      }
      Node localNode2 = localNodeList.item(i);
      if (!bool)
      {
        if (localNode2.getNodeType() == 1)
        {
          String str = localNode2.getLocalName();
          if (!bool) {
            if ("userdata".equals(str.toLowerCase())) {
              b(localwb, localNode2, paramt);
            }
          }
          if (bool) {
            continue;
          }
          if ("StyleProperties".equals(str)) {
            a(localwb, localNode2, paramt);
          }
        }
        i++;
      }
    } while (j == 0);
  }
  
  protected void a(wb paramwb, Node paramNode, a.e.b.b.t paramt)
    throws a.e.b.b.a
  {
    int i = i.h;
    Map localMap = t.a(paramNode, paramt);
    Iterator localIterator = localMap.entrySet().iterator();
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      paramwb.a((String)localEntry.getKey(), localEntry.getValue());
    } while (i == 0);
  }
  
  protected void b(wb paramwb, Node paramNode, a.e.b.b.t paramt)
    throws a.e.b.b.a
  {
    jb localjb = e();
    Object localObject = s.a(paramNode, paramt, localjb);
    if (localObject != null) {
      paramwb.a(localObject);
    }
  }
  
  static Class a(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  public static abstract interface a_
  {
    public abstract void a(Node paramNode, wb paramwb, a.e.b.b.t paramt);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.b.a.e

 * JD-Core Version:    0.7.0.1

 */